//
//  BAAlbumItem.h
//  BabyAlbum
//
//  Created by master on 17/2/23.
//  Copyright © 2017年 master. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSUInteger, BAResourceType) {
    BAResourceTypeImage,
    BAResourceTypeVideo
};

@interface BAAlbumItem : NSObject
@property (nonatomic, copy) NSString *name;
@property (nonatomic, assign) BAResourceType type;
- (BAAlbumItem *)autoFetch;

- (BOOL)isSetted;
- (UIImage *)coverImage;
@end

@interface BAAlbumVideoItem : BAAlbumItem
//@property (nonatomic, copy) NSString *name;
//@property (nonatomic, assign) BAResourceType type;
//@property (nonatomic, strong) UIImage *image;
@property (nonatomic, strong) AVURLAsset *video;

+ (BAAlbumVideoItem *)itemWithVideoAsset:(AVURLAsset *)asset;

@end
@interface BAAlbumImageItem : BAAlbumItem
//@property (nonatomic, copy) NSString *name;
@property (nonatomic, strong) UIImage *image;
//@property (nonatomic, strong) AVURLAsset *video;
+ (BAAlbumImageItem *)itemWithImage:(UIImage *)image;

@end

